package demo5_p;

public class Bird extends   Animal {

    public Bird(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat(){
        System.out.println(this.name + "吃鸟食");
    }

    public void fly() {
        System.out.println(this.name + "is flying");
    }
}
